package tws

import "github.com/gin-gonic/gin"

type HandlerFunc func(c *Context)

func Handle(h HandlerFunc) gin.HandlerFunc {
	return func(c *gin.Context) {
		ctx := NewContext(c)
		h(ctx)
	}
}
